<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">

var i = 0;
var j = 0;
while(i<3){
	//alert(i);

	while(j<3){
		alert(i+','+j);
		//0,0
		//0,1
		//0,2
		//1,0
		j++;
	}
	i++;

}

</script>
</body>
</html>